

<div class="trail">
       <strong><a href="#"><i class="icon-star"></i>AUDIT TRAIL</strong>
        <ul class="list-inline pull-right">
            <li><a href="#"><i class="icon-download-alt"></i><strong>Export data</strong></a></li> 
        </ul>
      </div>
</div>
<?php $this->widget('bootstrap.widgets.TbGridView', array(
    'type'=>'striped bordered condensed',
	'id'=>'audit-trail-grid',
	'dataProvider'=>$model->search(),
	/*'filter'=>$model,*/
	'columns'=>array(
		'stamp',	
		array('name'=>'user',
			'filter'=>CHtml::listData(User::model()->findAll(array('order'=>'username  ASC')),'id','username'),
			'value'=>'$data->user->username'),
		'action',
		'model',
		'field',
		'old_value',
		'new_value',
        array(
            'htmlOptions'=>array('style'=>'width:50px'),
            'name'=>'model',
            'type'=>'raw',
            'value'=>'CHtml::link($data->model_id, Yii::app()->baseUrl."/index.php/".$data->model."/".$data->model_id)',
        ),        
	),
)); ?>